<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{mmSupplierTypeBean.id}"/>
		<f:event type="preRenderView" listener="#{mmSupplierTypeBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Mm Supplier Type"/>

	<ui:define name="header">
		Mm Supplier Type
	</ui:define>

	<ui:define name="subheader">
		View existing Mm Supplier Type
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="mmSupplierTypeBeanMmSupplierTypeSupplierTypeNo" value="Supplier Type No:"/>
			<h:outputText id="mmSupplierTypeBeanMmSupplierTypeSupplierTypeNo" value="#{mmSupplierTypeBean.mmSupplierType.supplierTypeNo}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierTypeBeanMmSupplierTypeSupplierTypeCode" value="Supplier Type Code:"/>
			<h:outputText id="mmSupplierTypeBeanMmSupplierTypeSupplierTypeCode" value="#{mmSupplierTypeBean.mmSupplierType.supplierTypeCode}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierTypeBeanMmSupplierTypeSupplierTypeDescr" value="Supplier Type Descr:"/>
			<h:outputText id="mmSupplierTypeBeanMmSupplierTypeSupplierTypeDescr" value="#{mmSupplierTypeBean.mmSupplierType.supplierTypeDescr}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierTypeBeanMmSupplierTypePcPurchaseOrders" value="Pc Purchase Orders:"/>
			<h:dataTable id="mmSupplierTypeBeanMmSupplierTypePcPurchaseOrders" styleClass="data-table" value="#{forgeview:asList(mmSupplierTypeBean.mmSupplierType.pcPurchaseOrders)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoNo" value="#{_item.poNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoCode" value="#{_item.poCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDescr" value="#{_item.poDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDate" value="#{_item.poDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDiscountPerc" value="#{_item.poDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmSupplierTypeBeanMmSupplierTypePcPurchaseReqs" value="Pc Purchase Reqs:"/>
			<h:dataTable id="mmSupplierTypeBeanMmSupplierTypePcPurchaseReqs" styleClass="data-table" value="#{forgeview:asList(mmSupplierTypeBean.mmSupplierType.pcPurchaseReqs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrNo" value="#{_item.prNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrCode" value="#{_item.prCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDescr" value="#{_item.prDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDate" value="#{_item.prDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDiscountPerc" value="#{_item.prDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmSupplierTypeBeanMmSupplierTypeMmSuppliers" value="Mm Suppliers:"/>
			<h:dataTable id="mmSupplierTypeBeanMmSupplierTypeMmSuppliers" styleClass="data-table" value="#{forgeview:asList(mmSupplierTypeBean.mmSupplierType.mmSuppliers)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier No"/>
					</f:facet>
					<h:link outcome="/mmSupplier/view">
						<f:param name="id" value="#{_item.supplierNo}"/>
						<h:outputText id="itemSupplierNo" value="#{_item.supplierNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>